<?php foreach($data['list'] as $val):
	if(StringHelper::endsWith('swf', strtolower($val['photo_url']))):
		$info = SwfHelper::setting(SwfHelper::getInfoSwf($val['photo_url']), 238, 0);?>
		<div class="adv-item"><?php echo html_entity_decode(SwfHelper::printSWF(array('flashvars'=>$val['link_url'],'path'=>$val['photo_url'],'width'=>$info['width'],'height'=>$info['height'],'wmode'=>'transparent')))?></div>
	<?php else:?>
		<div class="adv-item"><a href="<?php echo $val['link_url']?>" target="_blank" title="<?php echo $val['name']?>"><img <?php echo html_entity_decode($data['attr'])?> src="<?php echo $val['photo_url']?>"/></a></div>
	<?php endif?>
<?php endforeach;?>